package com.dmz.workflow.vo;


import com.alibaba.fastjson.annotation.JSONField;
import com.echronos.commons.utils.FilePathDeSerializer;
import com.echronos.commons.utils.FilePathSerializer;
import com.echronos.commons.utils.TimeSerializerUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 评论返回VO
 */
@Data
@ApiModel(value = "Dictionary对象", description = "Dictionary")
public class DictionaryVo {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Integer id;
    /**
     * 键 (评论id)
     */
    @ApiModelProperty(value = "键")
    private String code;
    /**
     * 附件所属类型 1 评论 2 审批
     */
    private Integer belongTo;
    /**
     * 创建用户
     */
    @ApiModelProperty(value = "创建用户")
    private Integer createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JSONField(serializeUsing = TimeSerializerUtils.class)
    private LocalDateTime createTime;
    /**
     * 流程实例id
     */
    @ApiModelProperty(value = "流程实例id")
    private String processInstanceId;

    /**
     * 创建公司
     */
    @ApiModelProperty(value = "创建公司")
    private Integer companyId;

    /**
     * 附件地址
     */
    @JSONField(deserializeUsing = FilePathDeSerializer.class, serializeUsing = FilePathSerializer.class)
    private String url;

    /**
     * 附件名称
     */
    private String name;
    /**
     * 附件大小
     */
    private Integer size;
    /**
     * 附件格式
     */
    private String type;
    /**
     * 文件ID
     */
    private Integer fileId;
}